<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateInteresadoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateInteresadoLabel_idInter}" for="idInter" />
                    <h:inputText id="idInter" value="#{interesadoController.selected.idInter}" title="#{bundle.CreateInteresadoTitle_idInter}" required="true" requiredMessage="#{bundle.CreateInteresadoRequiredMessage_idInter}"/>
                    <h:outputLabel value="#{bundle.CreateInteresadoLabel_nombres}" for="nombres" />
                    <h:inputText id="nombres" value="#{interesadoController.selected.nombres}" title="#{bundle.CreateInteresadoTitle_nombres}" required="true" requiredMessage="#{bundle.CreateInteresadoRequiredMessage_nombres}"/>
                    <h:outputLabel value="#{bundle.CreateInteresadoLabel_apePate}" for="apePate" />
                    <h:inputText id="apePate" value="#{interesadoController.selected.apePate}" title="#{bundle.CreateInteresadoTitle_apePate}" />
                    <h:outputLabel value="#{bundle.CreateInteresadoLabel_apeMat}" for="apeMat" />
                    <h:inputText id="apeMat" value="#{interesadoController.selected.apeMat}" title="#{bundle.CreateInteresadoTitle_apeMat}" />
                    <h:outputLabel value="#{bundle.CreateInteresadoLabel_estado}" for="estado" />
                    <h:selectOneMenu id="estado" value="#{interesadoController.selected.estado}" title="#{bundle.CreateInteresadoTitle_estado}" required="true" requiredMessage="#{bundle.CreateInteresadoRequiredMessage_estado}">
                        <f:selectItems value="#{estadoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{interesadoController.create}" value="#{bundle.CreateInteresadoSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{interesadoController.prepareList}" value="#{bundle.CreateInteresadoShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.CreateInteresadoIndexLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
